alto
alto
provides idiomatic Rust bindings for OpenAL 1.1
and extensions (including EFX).
WARNING
Because Alto interacts with global C state via dynamic linking, having multiple versions of Alto in one project could lead to unsafety. Please make sure only one version of Alto is in your dependency tree at any given time.
API Usage
let alto = load_default?;
for s in alto.enumerate_outputs
let device = alto.open?; // Opens the default audio device
let context = device.new_context?; // Creates a default context
// Configure listener
context.set_position;
context.set_velocity;
context.set_orientation;
let source = context.new_static_source?;
// Now you can load your samples and store them in a buffer with
// `context.new_buffer(samples, frequency)`;